FROM python:3.10.16

COPY admin /opt/admin
COPY agent /opt/agent
COPY start.sh /start.sh

RUN pip install pip -U && \
    pip install -r /opt/admin/requirement.txt && \
    pip install -r /opt/agent/requirements.txt

ENTRYPOINT ["bash"]
CMD ["/start.sh"]